package com.atguigu.day11.homework.homework1;

/**
 * @version 1.0
 * @Author 马冰
 * @Date 2024/11/12 19:07
 * @注释
 */
public class Employee {
    private int num;
    private String name;
    private int age;
    private double salary;

    public String say(){
        return "编号" + num + "姓名：" + name + "年龄：" + age + "薪资：" + salary;
    }

    @Override
    public String toString() {
        return say();
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }
}
